package com.example.forum.enums;

public enum LoginResults {
    /// <summary>
    /// 登录成功
    /// </summary>

    Success(0,"登录成功"),
    /// <summary>
    /// 登录名不存在
    /// </summary>

    NotExist(-1,"登录名不存在"),
    /// <summary>
    /// 登录名或是密码错误
    /// </summary>

    PassWordError(-2,"登录名或是密码错误\""),
    /// <summary>
    /// 验证码错误
    /// </summary>

    CodeError(-3,"验证码输入不正确"),
    /// <summary>
    /// 邮箱未激活
    /// </summary>

    NoActived(-4,"您的邮箱还没有激活"),
    /// <summary>
    /// 登录参数录入不完整
    /// </summary>

    Incomplete(-5,"登录参数输入不完整"),
    /// <summary>
    /// 如果是用手机号登陆的，必须检查手机号是否已经认证
    /// </summary>

    NoPhoneActived(-6,"您的手机号还没有认证"),
    /// <summary>
    /// 如果是用手机号登陆的，必须检查手机号是否已经认证
    /// </summary>

    IsLocked(-7,"您的账户已经被锁定，请15分钟后重试，如有问题，请联系客服"),

    RegError(-8,"用户注册失败");

    private final int value;

    private final String reasonPhrase;


    LoginResults(int value, String reasonPhrase) {
        this.value = value;
        this.reasonPhrase = reasonPhrase;
    }


    /**
     * Return the integer value of this status code.
     */
    public int value() {
        return this.value;
    }

    /**
     * Return the reason phrase of this status code.
     */
    public String getReasonPhrase() {
        return this.reasonPhrase;
    }
}
